<?php $types = array('Shops', 'Shop in Shops', 'Shops in der EU') ?>

<select style="margin-top:6px" name="store" onchange="goToStore(this)">
    <option value="">-Bitte ausw&auml;hlen-</option>
    <?php foreach($this->groupedOptions AS $type=>$stores): ?>
      <optgroup label="<?php echo $types[$type] ?>">
        <?php foreach($stores AS $value=>$label): ?>
            <option <?php echo ($this->selected == $value) ? 'selected="selected"' : '' ?> value="<?php echo $this->urlThisPage(array('sherpa_stores' => array('action' => 'store', 'id' => $value))) ?>"><?php echo $this->escape($label) ?></option>
        <?php endforeach; ?>
      </optgroup>
    <?php endforeach; ?>
</select>